const schedule = require("node-schedule");
function regularSign() {
    const params = {
        ajwvr: 6,
        api: "http://i.huati.weibo.com/aj/super/checkin",
        texta: "签到",
        textb: "已签到",
        status: 0,
        id: "100808fc439dedbb06ca5fd858848e521b8716",
        location: "page_100808_super_index",
        timezone: "GMT 0800",
        lang: "zh-cn",
        plat: "Win32",
        ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
        screen: "1536 * 864",
        __rnd: Date.now()
    }
    const queryString = Object.entries(params).map(([key, value]) => `${key}=${encodeURIComponent(value)}`).join("&")

    schedule.scheduleJob("0 30 0 * * *", (res) => {
        fetch(`https://weibo.com/p/aj/general/button?${queryString}`)
    })
}
regularSign()